package com.ruoyi.zyx.domain;

import java.util.Date;
import java.util.Map;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.entity.SysDept;
import com.ruoyi.common.core.domain.entity.ZyxDevice;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 调拨信息对象 zyx_allot
 *
 * @author lhs
 * @date 2021-06-07
 */
public class ZyxAllot extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 医院id 关联部门表 */
    @Excel(name = "医院id 关联部门表")
    private Long departid;

    /** 设备id */
    @Excel(name = "设备id")
    private Long deviceid;

    /** 调拨单位 */
    @Excel(name = "调拨单位")
    private String allotunit;

    /** 调拨时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "调拨时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date allotdate;

    /** 归还时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "归还时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date returndate;

    /** 调用时长 */
    @Excel(name = "调用时长")
    private Long allotcycle;

    /** 提醒周期*/
    @Excel(name = "提醒周期")
    private Integer warncycle;
    @Excel(name = "提醒 提前多少天提醒")
    private Integer warndaynum;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "提醒日期")
    private Date warndate;//

    /** 删除标记 */
    private String delFlag;

    /** 是否提醒 1是 0否 */
    private String iswarn;

    private SysDept sysDept;
    private ZyxDevice zyxDevice;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setDepartid(Long departid)
    {
        this.departid = departid;
    }

    public Long getDepartid()
    {
        return departid;
    }
    public void setDeviceid(Long deviceid)
    {
        this.deviceid = deviceid;
    }

    public Long getDeviceid()
    {
        return deviceid;
    }
    public void setAllotunit(String allotunit)
    {
        this.allotunit = allotunit;
    }

    public String getAllotunit()
    {
        return allotunit;
    }
    public void setAllotdate(Date allotdate)
    {
        this.allotdate = allotdate;
    }

    public Date getAllotdate()
    {
        return allotdate;
    }
    public void setReturndate(Date returndate)
    {
        this.returndate = returndate;
    }

    public Date getReturndate()
    {
        return returndate;
    }
    public void setAllotcycle(Long allotcycle)
    {
        this.allotcycle = allotcycle;
    }

    public Long getAllotcycle()
    {
        return allotcycle;
    }
    public void setWarncycle(Integer warncycle)
    {
        this.warncycle = warncycle;
    }

    public Integer getWarncycle()
    {
        return warncycle;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("departid", getDepartid())
            .append("deviceid", getDeviceid())
            .append("allotunit", getAllotunit())
            .append("allotdate", getAllotdate())
            .append("returndate", getReturndate())
            .append("allotcycle", getAllotcycle())
            .append("warncycle", getWarncycle())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
                .append("iswarn",getIswarn())
                .append("warndaynum",getWarndaynum())
                .append("warndate",getWarndate())
            .toString();
    }

    public String getIswarn() {
        return iswarn;
    }

    public void setIswarn(String iswarn) {
        this.iswarn = iswarn;
    }

    public SysDept getSysDept() {
        return sysDept;
    }

    public void setSysDept(SysDept sysDept) {
        this.sysDept = sysDept;
    }

    public ZyxDevice getZyxDevice() {
        return zyxDevice;
    }

    public void setZyxDevice(ZyxDevice zyxDevice) {
        this.zyxDevice = zyxDevice;
    }

    public Integer getWarndaynum() {
        return warndaynum;
    }

    public void setWarndaynum(Integer warndaynum) {
        this.warndaynum = warndaynum;
    }

    public Date getWarndate() {
        return warndate;
    }

    public void setWarndate(Date warndate) {
        this.warndate = warndate;
    }

}
